/* 管理页面公共样式 */

/* 禁用所有动画效果 */
* {
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

/* 禁用所有按钮的点击效果 */
:deep(.el-button) {
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

:deep(.el-button:active),
:deep(.el-button:focus) {
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

/* 魔法主题色彩变量 */
:root {
  --magic-gold: #FFD700;
  --magic-dark-gold: #D4AF37;
  --magic-brown: #2C1810;
  --magic-light: #F7F3E9;
  --magic-white: #FFFFFF;
}

/* 按钮样式 */
.magic-button-primary {
  background: linear-gradient(135deg, var(--magic-dark-gold), var(--magic-gold));
  border: none;
  color: var(--magic-brown);
  font-weight: 600;
}

.magic-button-success {
  background: linear-gradient(135deg, #4CAF50, #66BB6A);
  border: none;
  color: #fff;
  font-weight: 600;
}

/* 卡片样式 */
.magic-card {
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(212, 175, 55, 0.8);
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.magic-card:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: var(--magic-dark-gold);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* 禁用卡片内所有元素的动画 */
.magic-card * {
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

/* 网格布局 */
.magic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  padding: 0;
}

/* 操作栏 */
.action-bar {
  margin-bottom: 30px;
  text-align: center;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #8c939d;
}

.empty-state p {
  margin: 10px 0;
  font-family: var(--font-magic-body);
}

/* 表单样式 */
.magic-form-section {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
}

.section-title {
  color: var(--magic-gold);
  font-family: var(--font-magic-title);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.section-description {
  color: var(--magic-light);
  font-family: var(--font-magic-body);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px 0;
}

/* 头像样式 */
.magic-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--magic-dark-gold);
  object-fit: cover;
}

/* 文档标题 */
.document-title {
  color: var(--magic-gold);
  font-family: var(--font-magic-title);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px 0;
}

/* 文档元信息 */
.document-meta {
  color: var(--magic-dark-gold);
  font-size: 12px;
  margin: 0 0 10px 0;
}

.document-meta span {
  margin-right: 15px;
}

/* 文档内容 */
.document-content {
  color: var(--magic-light);
  font-family: var(--font-magic-body);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* 角色信息样式 */
.character-name {
  color: var(--magic-gold);
  font-family: var(--font-magic-title);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.character-description {
  color: var(--magic-light);
  font-family: var(--font-magic-body);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 10px 0;
}

.character-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-tag {
  background: rgba(212, 175, 55, 0.3);
  color: var(--magic-dark-gold);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
}

/* 上传组件样式 */
.magic-uploader .el-upload-dragger {
  width: 100%;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed var(--magic-dark-gold);
  border-radius: 10px;
}

.magic-uploader .el-icon--upload {
  font-size: 48px;
  color: var(--magic-dark-gold);
  margin-bottom: 16px;
}

.magic-uploader .el-upload__text {
  color: var(--magic-light);
  font-size: 16px;
}

.magic-uploader .el-upload__tip {
  color: #8c939d;
  font-size: 14px;
  margin-top: 10px;
}

/* 旋转动画（仅在必要时使用） */
.rotating {
  animation: rotating 2s linear infinite;
}

@keyframes rotating {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
